From 33c928e45dc6e31fb265203fbce5ed2a7446400a Mon Sep 17 00:00:00 2001 From: robertlipe Date: Tue, 22 Oct 2013 02:33:15 +0000 Subject: [PATCH] Pad internal buffer to appease -fsanitize=address. format_garmin_xt_decrypt_trk_blk is definitely going one byte too deep on that final byte and this is probably going to come back to byte me. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4635 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin_xt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin_xt.cc b/gpsbabel/garmin_xt.cc index 2afb3d3d8..3d46e8321 100644 --- a/gpsbabel/garmin_xt.cc +++ b/gpsbabel/garmin_xt.cc @@ -235,7 +235,7 @@ format_garmin_xt_proc_strk(void) int Count = 0; // Used to obtain number of read bytes int NumberOfTracks = 0, TracksCompleted = 0; // Number of tracks in the file and number of processed tracks uint16_t trackbytes = 0; // Bytes in track - uint8_t TrackBlock[STRK_BLOCK_SIZE]; // File Block + uint8_t TrackBlock[STRK_BLOCK_SIZE + 1]; // File Block uint8_t ii; // temp variable double Lat = 0, Lon = 0; // wpt data double PrevLat = 0, PrevLon = 0, PrevEle = 0; // wpt data -- 2.30.2